package com.tpay.client.util;

import com.google.gwt.core.client.GWT;
import com.tpay.client.i18n.PayConstants;
import com.tpay.client.i18n.PayMessages;

public class I18nUtil {
	private static boolean initialized = false;
	
	private static PayConstants constants = null;
	private static PayMessages messages = null;
	
	public static void init() {
		if(!initialized) {
			constants = (PayConstants)GWT.create(PayConstants.class);
			messages = (PayMessages)GWT.create(PayMessages.class);
			
			initialized = true;
		}
	}
	
	public static PayConstants getConstant() {
		return constants;
	}
	
	public static PayMessages getMessage() {
		return messages;
	}
}
